# CMake 最低版本号要求
cmake_minimum_required (VERSION 2.8)

project(6818FundamentalExe)

set(CMAKE_CXX_STANDARD 11)


# 交叉编译 --- 设置编译器和目标平台
set(CMAKE_CXX_COMPILER "arm-linux-g++")
set(CMAKE_C_COMPILER "arm-linux-gcc")


# Source
aux_source_directory(. SRC_LIST)

add_executable(6818FundamentalExe ${SRC_LIST})

# ================= for jpeg =================
# =================   Start  =================
include_directories(/home/ljh/jpeg/include/ )
link_directories(/home/ljh/jpeg/lib/)

target_link_libraries(6818FundamentalExe /home/ljh/jpeg/lib/libjpeg.so)
target_link_libraries(6818FundamentalExe /home/ljh/jpeg/lib/libjpeg.so.9)
target_link_libraries(6818FundamentalExe /home/ljh/jpeg/lib/libjpeg.so.9.3.0)
# =================    End    =================

# 链接线程库
find_package(Threads)
target_link_libraries(6818FundamentalExe ${CMAKE_THREAD_LIBS_INIT})

